dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48b0722
)
Fix for DynamicPageList, which registers a mixed-case tag name.
author
Brion Vibber
<brion@users.mediawiki.org>
Thu, 1 Jun 2006 06:41:32 +0000
(06:41 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Thu, 1 Jun 2006 06:41:32 +0000
(06:41 +0000)
The new system needs tag names to be case-folded internally so
that tags are properly case-insensitive.
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
6dacd60
..
2bfa482
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-3664,6
+3664,7
@@
class Parser
* @return The old value of the mTagHooks array associated with the hook
*/
function setHook( $tag, $callback ) {
+ $tag = strtolower( $tag );
$oldVal = @$this->mTagHooks[$tag];
$this->mTagHooks[$tag] = $callback;